package com.doudou.commons.regex;

/**
 * @Author: 傻男人
 * @Date: 2020/5/15 10:48
 * @Version: 1.0
 * @Description: 正则的常用表达式
 */
public interface RegexContext {

    String email = "\\w+@\\w+\\.[a-z]+(\\.[a-z]+)?";

    String phone = "^1\\d{10}$";

    String IdCard = "[1-9](\\d{16}|\\d{13})[0-9xX]{1}";

    String tel = "(\\+\\d+)?(\\d{3,4}\\-?)?\\d{7,8}$";

    String yyyy_MM_dd = "^[1-9]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])( ([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])?";

    String yyyyMMdd = "^[1-9]\\d{3}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])( ([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])?";

    //域名
    String domain = "[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(/.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+/.?";

    String china_char = "[\\u4e00-\\u9fa5]";
}
